<?php namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class EnterpriceEnergysaverIndustry extends Model {

	//
	protected $table = 'enterprice_energysaver_industry';
	protected $fillable = ['uid', 'staff_num', 'tech_num', 'senior_tech_num', 'has_bank_credit_info', 'bank_credit_level', 'bank_credit_copy', 'total_capital', 'net_capital', 'liabilities_rate', 'note', 'bank_card_code'];

	public function saverTech()
	{
		return $this->hasMany("App\Models\SaverTech", "saver_id", 'id');
	}

	public function saverDomain()
	{
		return $this->hasMany("App\Models\SaverDomain", "saver_id", "id");
	}


}
